package net.yxsoft.controller.pc.sysmgt;

import com.jfinal.aop.Clear;
import net.yxsoft.controller.pc.sysmgt.common.AuthController;
import net.yxsoft.service.WarnService;
import rapid.core.Authuser;

public class WarnController extends AuthController {
    private static final WarnService asr=WarnService.INSTANCE;

    /**
    * 默认登入页面
    * */
    public void index() {
        render("warn.html");
    }

    /**
     *分页获取异常信息
     * */
    @Clear
    public void getWarnings(){
        String page = get("page");//页码
        String limit = get("limit");//页数
        Authuser loginUser = getLoginUser();
        renderJson(asr.getWarnings(page,limit,loginUser).toString());
    }
}
